package repositories

import (
	"baseService/internal/domain/entities"
	"context"
)

// ExampleRepository 示例仓储接口 - 演示如何扩展BaseRepository
type ExampleRepository interface {
	BaseRepository[entities.Example]

	// 示例特有的查询方法
	GetByName(ctx context.Context, name string) (*entities.Example, error)
	GetActiveExamples(ctx context.Context, limit int) ([]*entities.Example, error)
	GetByStatus(ctx context.Context, status entities.ExampleStatus) ([]*entities.Example, error)
	UpdateStatus(ctx context.Context, id uint, status entities.ExampleStatus) error
}
